﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ThomasGIS.Vector
{
    public interface IDataBaseFile
    {
        double GetDouble(int rowId, string field);
        string GetString(int rowId, string field);
        int GetInt(int rowId, string field);
        bool SetValue(int rowId, string field, object value);
        int InsertEmptyRow();
        bool InsertRow(Dictionary<string, object> values);
        bool DeleteRow(int rowId);
        bool InsertField(string fieldName, DBFFieldType type, int length, int precision);
        bool DeleteField(string fieldName);
        bool Save(string filepath);
    }
}
